package com.weharvest.edu.exception;

import com.weharvest.edu.enums.ResultEnum;
import lombok.Getter;

@Getter
public class EduException extends  RuntimeException {

    private  Integer code;

    public EduException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code= resultEnum.getCode();
    }
}
